package com.jp.refreshlocalcachedemo.service;

import com.jp.refreshlocalcacheserver.annotation.RefreshLocalCachePoint;
import org.springframework.stereotype.Service;

/**
 * @Author: jipeng
 * @Description:
 * @Date: Created in 2020/5/19 14:17
 */
@Service
public class ServiceB {

    @RefreshLocalCachePoint(cacheKey = "cacheKey1")
    public void test1(){
        System.out.println("被AOP调用，没有传参数");
    }

    @RefreshLocalCachePoint(cacheKey = "cacheKey2")
    public void test2(String val){
        System.out.println("被AOP调用，传参数 => " + val);
    }
}
